.class Lrexsee/network/RexseeBluetooth$10;
.super Landroid/content/BroadcastReceiver;
.source "RexseeBluetooth.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lrexsee/network/RexseeBluetooth;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/network/RexseeBluetooth;


# direct methods
.method constructor <init>(Lrexsee/network/RexseeBluetooth;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/network/RexseeBluetooth$10;->this$0:Lrexsee/network/RexseeBluetooth;

    .line 304
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 8
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "intent"    # Landroid/content/Intent;

    .prologue
    const/16 v4, 0xa

    .line 307
    const-string v3, "android.bluetooth.device.extra.DEVICE"

    invoke-virtual {p2, v3}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v1

    check-cast v1, Landroid/bluetooth/BluetoothDevice;

    .line 308
    .local v1, "device":Landroid/bluetooth/BluetoothDevice;
    const-string v3, "android.bluetooth.device.extra.BOND_STATE"

    invoke-virtual {p2, v3, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v0

    .line 309
    .local v0, "currentState":I
    const-string v3, "android.bluetooth.device.extra.PREVIOUS_BOND_STATE"

    invoke-virtual {p2, v3, v4}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    .line 310
    .local v2, "previousState":I
    iget-object v3, p0, Lrexsee/network/RexseeBluetooth$10;->this$0:Lrexsee/network/RexseeBluetooth;

    # getter for: Lrexsee/network/RexseeBluetooth;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v3}, Lrexsee/network/RexseeBluetooth;->access$1(Lrexsee/network/RexseeBluetooth;)Lrexsee/core/browser/Browser;

    move-result-object v3

    iget-object v3, v3, Lrexsee/core/browser/Browser;->eventList:Lrexsee/core/browser/clazz/EventList;

    const-string v4, "onBluetoothDeviceBondStateChanged"

    const/4 v5, 0x3

    new-array v5, v5, [Ljava/lang/String;

    const/4 v6, 0x0

    invoke-virtual {v1}, Landroid/bluetooth/BluetoothDevice;->getAddress()Ljava/lang/String;

    move-result-object v7

    aput-object v7, v5, v6

    const/4 v6, 0x1

    iget-object v7, p0, Lrexsee/network/RexseeBluetooth$10;->this$0:Lrexsee/network/RexseeBluetooth;

    # invokes: Lrexsee/network/RexseeBluetooth;->getBondState_(I)Ljava/lang/String;
    invoke-static {v7, v0}, Lrexsee/network/RexseeBluetooth;->access$4(Lrexsee/network/RexseeBluetooth;I)Ljava/lang/String;

    move-result-object v7

    aput-object v7, v5, v6

    const/4 v6, 0x2

    iget-object v7, p0, Lrexsee/network/RexseeBluetooth$10;->this$0:Lrexsee/network/RexseeBluetooth;

    # invokes: Lrexsee/network/RexseeBluetooth;->getBondState_(I)Ljava/lang/String;
    invoke-static {v7, v2}, Lrexsee/network/RexseeBluetooth;->access$4(Lrexsee/network/RexseeBluetooth;I)Ljava/lang/String;

    move-result-object v7

    aput-object v7, v5, v6

    invoke-virtual {v3, v4, v5}, Lrexsee/core/browser/clazz/EventList;->run(Ljava/lang/String;[Ljava/lang/String;)V

    .line 311
    return-void
.end method
